package com.shop.service;

import com.shop.pojo.Auction;
import com.shop.pojo.AuctionCustomer;
import com.shop.pojo.Auctionrecord;

import java.util.List;

public interface AuctionService {
   /*List<Auction> queryAllAuctions();*/

   List<Auction> queryAllAuctions(Auction auction,Integer pageNum);



   Auction  selectAuctionAndAuctionRecordList(Integer auctionId);

    void saveAuctionRecord(Auctionrecord auctionrecord) throws Exception;




    /**
     *
     * @查询已经结束的拍卖商品
     */
    List<AuctionCustomer> selectAuctionendtime();




    /**查询正在拍卖的商品*/
    List<Auction> selectAuctionNoendtime();

    void addAuction(Auction auction);


    //删除auction
    public Integer deleteAuctionById(Integer id,Integer pageNum);

    //根据id获取商品信息
    Auction selectAuctionByAuctionID(Integer id);

    void updateAuctionById(Auction auction);

}
